package com.cn.mobileproject.db;

import com.cn.mobileproject.db.dao.DictionaryDao;
import com.cn.mobileproject.db.dao.EnterpriseDao;
import com.cn.mobileproject.db.dao.OrgDao;
import com.cn.mobileproject.db.dao.OrgRelationDao;
import com.cn.mobileproject.db.dao.UserDao;
import com.cn.mobileproject.db.dao.UserInfoDao;
import com.cn.mobileproject.db.dao.impl.DictionaryDaoImpl;
import com.cn.mobileproject.db.dao.impl.EnterpriseDaoImpl;
import com.cn.mobileproject.db.dao.impl.OrgDaoImpl;
import com.cn.mobileproject.db.dao.impl.OrgRelationDaoImpl;
import com.cn.mobileproject.db.dao.impl.UserDaoImpl;
import com.cn.mobileproject.db.dao.impl.UserInfoDaoImpl;

public class DaoFactory {

	public static DaoFactory instance = new DaoFactory();
	
	private DaoFactory(){
		
	}
	
	public static DaoFactory getInstance(){
		return instance;
	}
	
	private UserDao mUserDao = new UserDaoImpl();
	
	private UserInfoDao mUserInfoDao = new UserInfoDaoImpl();
	
	private OrgRelationDao mOrgRelationDao = new OrgRelationDaoImpl();
	
	private OrgDao mOrgDao = new OrgDaoImpl();
	
	private DictionaryDao mDictionaryDao = new DictionaryDaoImpl();
	
	private EnterpriseDao mEnterpriseDao = new EnterpriseDaoImpl(); 
	
	public UserDao getUserDao(){
		return mUserDao;
	}
	
	public EnterpriseDao getEnterpriseDao(){
		return mEnterpriseDao;
	}
	
	public UserInfoDao getUserInfoDao(){
		return mUserInfoDao;
	}
	
	public DictionaryDao getDictionaryDao(){
		return mDictionaryDao;
	}
	
	public OrgRelationDao getOrgRelationDao(){
		return mOrgRelationDao;
	}
	
	public OrgDao getOrgDao(){
		return mOrgDao;
	}
}
